using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN SalaryRuleItemsEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: SalaryRuleItemsEntity</para>
	/// <para>Description: ClassSalaryRuleItemsEntity store data of table SalaryRuleItems</para>
	///</summary>

	[Serializable]
	public partial class SalaryRuleItemsEntity{


		private bool _InternalChangedIsNullSalaryRuleItemId=true;
		private bool _IsNullSalaryRuleItemId=true;
		private bool _InternalChangedIsNullSalaryRuleId=true;
		private bool _IsNullSalaryRuleId=true;
		private bool _InternalChangedIsNullSalaryFieldId=true;
		private bool _IsNullSalaryFieldId=true;
		private bool _InternalChangedIsNullRuleContent=true;
		private bool _IsNullRuleContent=true;
		private bool _InternalChangedIsNullCalculationType=true;
		private bool _IsNullCalculationType=true;
		private bool _InternalChangedIsNullCalculationIndex=true;
		private bool _IsNullCalculationIndex=true;
		private int _SalaryRuleItemId;
		private int _SalaryRuleId;
		private int _SalaryFieldId;
		private string _RuleContent;
		private Byte _CalculationType;
		private int _CalculationIndex;
		[XmlElement(ElementName = "IsNullSalaryRuleItemId")]
		public bool IsNullSalaryRuleItemId{
			get{return _IsNullSalaryRuleItemId;}
			set{if(!_InternalChangedIsNullSalaryRuleItemId)_IsNullSalaryRuleItemId=value;}
		}
		[XmlElement(ElementName = "IsNullSalaryRuleId")]
		public bool IsNullSalaryRuleId{
			get{return _IsNullSalaryRuleId;}
			set{if(!_InternalChangedIsNullSalaryRuleId)_IsNullSalaryRuleId=value;}
		}
		[XmlElement(ElementName = "IsNullSalaryFieldId")]
		public bool IsNullSalaryFieldId{
			get{return _IsNullSalaryFieldId;}
			set{if(!_InternalChangedIsNullSalaryFieldId)_IsNullSalaryFieldId=value;}
		}
		[XmlElement(ElementName = "IsNullRuleContent")]
		public bool IsNullRuleContent{
			get{return _IsNullRuleContent;}
			set{if(!_InternalChangedIsNullRuleContent)_IsNullRuleContent=value;}
		}
		[XmlElement(ElementName = "IsNullCalculationType")]
		public bool IsNullCalculationType{
			get{return _IsNullCalculationType;}
			set{if(!_InternalChangedIsNullCalculationType)_IsNullCalculationType=value;}
		}
		[XmlElement(ElementName = "IsNullCalculationIndex")]
		public bool IsNullCalculationIndex{
			get{return _IsNullCalculationIndex;}
			set{if(!_InternalChangedIsNullCalculationIndex)_IsNullCalculationIndex=value;}
		}
		[XmlElement(ElementName = "SalaryRuleItemId")]
		public int SalaryRuleItemId{
			get{return _SalaryRuleItemId;}
			set{
				_SalaryRuleItemId=value;
				if(_SalaryRuleItemId!=null){
					_IsNullSalaryRuleItemId=false;
					_InternalChangedIsNullSalaryRuleItemId=true;
				}
			}
		}
		[XmlElement(ElementName = "SalaryRuleId")]
		public int SalaryRuleId{
			get{return _SalaryRuleId;}
			set{
				_SalaryRuleId=value;
				if(_SalaryRuleId!=null){
					_IsNullSalaryRuleId=false;
					_InternalChangedIsNullSalaryRuleId=true;
				}
			}
		}
		[XmlElement(ElementName = "SalaryFieldId")]
		public int SalaryFieldId{
			get{return _SalaryFieldId;}
			set{
				_SalaryFieldId=value;
				if(_SalaryFieldId!=null){
					_IsNullSalaryFieldId=false;
					_InternalChangedIsNullSalaryFieldId=true;
				}
			}
		}
		[XmlElement(ElementName = "RuleContent")]
		public string RuleContent{
			get{return _RuleContent;}
			set{
				_RuleContent=value;
				if(_RuleContent!=null){
					_IsNullRuleContent=false;
					_InternalChangedIsNullRuleContent=true;
				}
			}
		}
		[XmlElement(ElementName = "CalculationType")]
		public Byte CalculationType{
			get{return _CalculationType;}
			set{
				_CalculationType=value;
				if(_CalculationType!=null){
					_IsNullCalculationType=false;
					_InternalChangedIsNullCalculationType=true;
				}
			}
		}
		[XmlElement(ElementName = "CalculationIndex")]
		public int CalculationIndex{
			get{return _CalculationIndex;}
			set{
				_CalculationIndex=value;
				if(_CalculationIndex!=null){
					_IsNullCalculationIndex=false;
					_InternalChangedIsNullCalculationIndex=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END SalaryRuleItemsEntityBase*****************************************/
	/*****************************************************************************************************/
}

